package cn.xluobo.business.wechat.miniapp.course.domain.resp;

import cn.xluobo.business.sc.course.domain.resp.time.RespClaTimeAttend;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

/**
 * 学生上课详情
 *
 * 用于：按照排课查上课详情
 * @author ：KingLong
 * @date ：Created in 2020/10/28 19:07
 */
@Data
public class RespClaStudentAttendInfo {
    private String studentName;
    private String attendStatus;
    private BigDecimal payHour;

    public static RespClaStudentAttendInfo transfer(RespClaTimeAttend respClaTimeAttend) {
        RespClaStudentAttendInfo studentAttendInfo = new RespClaStudentAttendInfo();
        BeanUtils.copyProperties(respClaTimeAttend, studentAttendInfo);
        return studentAttendInfo;
    }
}
